package com.example.child_protection.enums;

import java.util.HashMap;
import java.util.Map;

/**
 * 结案原因枚举
 * @author Biz
 * @date 2018-10-31
 */
public enum CloseCaseReasonEnums {

    CLOSE_CASE("CLOSE_CASE", "结案"),

    NO("NO", "否")
    ;

    private final String value;

    private final String displayName;

    private static Map<String, CloseCaseReasonEnums> valueMap;

    private CloseCaseReasonEnums(String value, String displayName) {
        this.value = value;
        this.displayName = displayName;
    }

    public CloseCaseReasonEnums getEnum(String value) {
        return (CloseCaseReasonEnums) valueMap.get(value);
    }

    public Map<String, CloseCaseReasonEnums> getAllValueMap() {
        return valueMap;
    }

    public String getValue() {
        return this.value;
    }

    public String getDisplayName() {
        return this.displayName;
    }

    static {

        valueMap = new HashMap<String, CloseCaseReasonEnums>();

        for (CloseCaseReasonEnums e : values())
            valueMap.put(e.value, e);
    }
}
